<?php 

/*****************************************************************************
 * 
 *  Copyright 2009 Sylvain Dudoit (contact : sylvain.dudoit at gmail.com)
 *  
 *  This file is part of Poupitchi.
 *
 *  Poupitchi is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  Poupitchi is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with Poupitchi.  If not, see <http://www.gnu.org/licenses/>.
 *
 *****************************************************************************/

?>

<ul>
  <?php foreach ($P_MODULES as $module) : ?>
  <li>
    <a href="index.php?action=show&module=<?php e($module)?>" 
       class="<?php e(($P_MODULE === $module) ? "activepage" : "disactivepage");?>">
       <?php etr(ucfirst($module)); ?>
    </a>
  </li>
  <?php endforeach; ?>
  <li>
    <a href="index.php?action=logout" class="disactivepage">
      <?php e(tr("Logout")." (".ucfirst($P_USER).")");?>
    </a>
  </li>
</ul>
